import React, { Component } from 'react';
import {
    View,
    Button,
    StyleSheet
} from 'react-native';
import BaseComponentF from './BaseComponentF';
class PromiseDemo extends Component {
    render() {
        return (
            <View style={Style.container}>
                <Button title='demo1' onPress={() => { this.demo1() }} />
            </View>
        );
    }

    demo1() {
        this.props.navigation.navigate('LoginPage', { title: '登录页面' });
    }
}

const Style = StyleSheet.create({
    container: {
        flex: 1,
    }
});

export default BaseComponentF(PromiseDemo);